package org.example.shop.web;

import org.example.shop.pojo.Order;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface IOrderController {
    /**
     * @param order
     * @return
     */
    @RequestMapping("/order/create")
    Order createOrder(Order order);

    @PostMapping("/order/query")
    Order queryOrder(@RequestParam("id") Long id);
}
